@import './base.scss';

body{
    display: flex;
    flex-direction: column;
}




main{
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgb(241, 243, 245);
    nav{
        width: 100%;
        height: 74px;
        overflow: hidden;
        div{
            width: 1200px;
            height: 100%;
            margin: 0 auto;
            display: flex;
            .logo{
                width: 204px;
                height: 34px;
                margin-top: 20px;
                cursor: pointer;
                img{
                    width: 204px;
                    height: 34px;
                }
            }
            ul{
                margin-top: 29px;
                padding-left: 40px;
                width: 950px;
                height: 88px;
                display: flex;
                li{
                    padding:0 22px;
                    line-height: 16px;
                    a{
                        &:hover{
                            color:#cf0a2c;
                        }
                    }
                }
            }
            .search{
                margin-top: 20px;
                width: 246px;                
                height: 38px;
                border-radius: 20px;
                background-color: #fff;
                div{
                    input{
                        border: none;
                        outline: none;
                        text-indent: 1em;
                        font-size: 14px;
                        border-top-left-radius: 20px;
                        border-bottom-left-radius: 20px;
                        margin-left: 5px;
                    }
                    span{
                        font-size: 20px;
                        line-height: 38px;
                        opacity: .5;
                        text-align: center;
                        margin-left: 5px;
                        &:nth-of-type(1){
                            padding-left: 5px;
                        }
                        &:nth-of-type(2){
                            cursor: pointer;
                        }
                    }
                    ul{
                        width: 190px;
                        display: block;
                        position: absolute;
                        z-index: 110;
                        li{
                            width: 190px;
                            height: 30px;
                            color: #000;
                            font-size: 14px;
                            text-indent: 1em;
                            line-height: 30px;
                            background-color: #fff;
                            padding: 0;
                            border-bottom: 1px solid #ccc;
                            overflow: hidden;
                            white-space: nowrap;
                            cursor: pointer;
                        }
                    }
                }
            }
        }
        .secondUl{
            width: 100%;
            height: 200px;
            margin-top: -30px;
            position: relative;
            display: none;
            ul{
                width: 100%;
                height: 200px;
                background-color: #fff;
                position: fixed;
                z-index: 10000;
                display: flex;
                justify-content: center;
                align-items: center;
                li{
                    width: 140px;
                    height:128px ;
                    margin: 0 10px{
                        bottom: 12px;
                    }
                    a{
                        display: block;
                        img{
                            width: 140px;
                            height:128px ;
                        }
                        p{
                            text-align: center;
                            margin-left: 30px;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 1; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                    }
                    &:hover{
                        a{
                            color:#000;
                            img{
                                box-shadow: 2px 2px 30px #ccc;
                            }

                        }
                    }
                }
            }
        }
        .secondUl2{
            width: 100%;
            height: 200px;
            margin-top: -30px;
            position: relative;
            display: none;
            ul{
                width: 100%;
                height: 200px;
                background-color: #fff;
                position: fixed;
                z-index: 10000;
                display: flex;
                justify-content: center;
                align-items: center;
                li{
                    width: 140px;
                    height:128px ;
                    margin: 0 10px{
                        bottom: 12px;
                    }
                    a{
                        display: block;
                        img{
                            width: 140px;
                            height:128px ;
                        }
                        p{
                            text-align: center;
                            margin-left: 30px;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 1; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                    }
                    &:hover{
                        a{
                            color:#000;
                            img{
                                box-shadow: 2px 2px 30px #ccc;
                            }

                        }
                    }
                }
            }
        }
        .secondUl3{
            width: 100%;
            height: 200px;
            margin-top: -30px;
            position: relative;
            display: none;
            ul{
                width: 100%;
                height: 200px;
                background-color: #fff;
                position: fixed;
                z-index: 10000;
                display: flex;
                justify-content: center;
                align-items: center;
                li{
                    width: 140px;
                    height:128px ;
                    margin: 0 10px{
                        bottom: 12px;
                    }
                    a{
                        display: block;
                        img{
                            width: 140px;
                            height:128px ;
                        }
                        p{
                            text-align: center;
                            margin-left: 30px;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 1; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                    }
                    &:hover{
                        a{
                            color:#000;
                            img{
                                box-shadow: 2px 2px 30px #ccc;
                            }

                        }
                    }
                }
            }
        }
        .secondUl4{
            width: 100%;
            height: 200px;
            margin-top: -30px;
            position: relative;
            display: none;
            ul{
                width: 100%;
                height: 200px;
                background-color: #fff;
                position: fixed;
                z-index: 10000;
                display: flex;
                justify-content: center;
                align-items: center;
                li{
                    width: 140px;
                    height:128px ;
                    margin: 0 10px{
                        bottom: 12px;
                    }
                    a{
                        display: block;
                        img{
                            width: 140px;
                            height:128px ;
                        }
                        p{
                            text-align: center;
                            margin-left: 30px;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 1; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                    }
                    &:hover{
                        a{
                            color:#000;
                            img{
                                box-shadow: 2px 2px 30px #ccc;
                            }

                        }
                    }
                }
            }
        }
        .secondUl5{
            width: 100%;
            height: 200px;
            margin-top: -30px;
            position: relative;
            display: none;
            ul{
                width: 100%;
                height: 200px;
                background-color: #fff;
                position: fixed;
                z-index: 10000;
                display: flex;
                justify-content: center;
                align-items: center;
                li{
                    width: 140px;
                    height:128px ;
                    margin: 0 10px{
                        bottom: 12px;
                    }
                    a{
                        display: block;
                        img{
                            width: 140px;
                            height:128px ;
                        }
                        p{
                            text-align: center;
                            margin-left: 30px;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 1; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                    }
                    &:hover{
                        a{
                            color:#000;
                            img{
                                box-shadow: 2px 2px 30px #ccc;
                            }

                        }
                    }
                }
            }
        }
        .secondUl6{
            width: 100%;
            height: 200px;
            margin-top: -30px;
            position: relative;
            display: none;
            ul{
                width: 100%;
                height: 200px;
                background-color: #fff;
                position: fixed;
                z-index: 10000;
                display: flex;
                justify-content: center;
                align-items: center;
                li{
                    width: 140px;
                    height:128px ;
                    margin: 0 10px{
                        bottom: 12px;
                    }
                    a{
                        display: block;
                        img{
                            width: 140px;
                            height:128px ;
                        }
                        p{
                            text-align: center;
                            margin-left: 30px;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 1; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                    }
                    &:hover{
                        a{
                            color:#000;
                            img{
                                box-shadow: 2px 2px 30px #ccc;
                            }

                        }
                    }
                }
            }
        }
    }   
    // 轮播图区域 
    .swiper-container{
        width: 100%;
        height:526px;
        margin-top: 24px;
        overflow: hidden;
        .swiper-wrapper{
            width: 100%;
            height:526px;    
            .swiper-slide{
                width: 100%;
                height:526px;        
                img{
                    overflow: hidden;
                    width: 100%;
                    height:526px;
                }
            }
        }
        .swiper-pagination{
            bottom: 80px;
        }
    }
    // 功能区域
    .function{
        width: 100%;
        margin-top: 24px;
        .fnmid{
            width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap:wrap ;
            justify-content: start;
            div{
                width: 171.43px;
                min-height: 95px;
                padding: 8px 4px;
                display: flex;
                flex-direction: column;
                align-items: center;
                font-size: 14px;
                cursor: pointer;
                img{
                    width: 48px;
                    height: 48px;
                    background-image: rgba(0,0,0,);

                }
                p{
                    margin-top: 10px;
                }
                &:hover{
                    p{
                        opacity: 0.5;                   
                    }
                    img{
                        filter: brightness(90%);;
                    }
                }
                
            }
        }
    }
    // 新品区域
    .new{
        width: 100%;
        margin-top: 24px;
        .mewmid{
            width: 1212px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            div{
                width: 291px;
                min-height: 194px;
                margin-bottom: 12px;
                margin-right:12px ;
                img{
                    width: 100%;
                    height: 100%;
                }
                &:hover{
                    box-shadow: 2px 2px 30px #ccc;
                }
            }
        }
    }
    // 限时购区域
    .setTimeout{
        width: 100%;
        margin-top: 24px;
        .timeoutmid{
            width:1212px;
            margin: 0 auto;
            .toptime{
                width: 280px;
                height:64px;
                display: flex;
                margin: 0;
                line-height: 64px;
                div{
                    &:nth-child(1){
                        font-size: 26px;
                    }
                    &:nth-child(2){
                        font-size: 18px;
                        color: rgba(0,0,0,0.4);
                        margin-left:20px ;
                    }
                    &:nth-child(3){
                        font-size: 16px;
                    }
                }
            }
            .bttime{
                display: flex;
                flex-wrap: wrap;
                justify-content: start;
                .bttime1{
                    width: 230px;
                    min-height:306.5px;
                    background-color: #fff;
                    display: flex;
                    flex-direction: column;
                    text-align: center;
                    line-height: 30px;
                    margin: 12px{
                        left: 0;
                        top: 0;
                    }
                    .bttimetop{
                        width: 100%;
                        height: 60%;
                        img{
                            width: 177px;
                            height: 154px;
                            padding-top: 20px;
                        }
                    }
                    .bttimebt{
                        width: 100%;
                        height: 40%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        p{
                            width: 70%;
                            height: 60%;    
                            font-size: 14px;
                            font-weight: 900;
                            overflow: hidden;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                        span{
                            width: 100%;
                            height: 20%;    
                            font-size: 13px;
                            color: #ccc;
                        }
                        i{
                            width: 100%;
                            height: 30%;    
                            font-size: 16px;
                            color: rgb(207, 10, 44);
                        }
                    }
                        
                    
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
            }
        }
    }
    // 爆款、生态区域
    .Popular{
        width: 100%;
        padding-top: 24px;
        margin-bottom: 24px;
        .popmid{
            width:1212px;
            margin: 0 auto;
            .toptime{
                width: 280px;
                height:64px;
                display: flex;
                margin: 0{
                    bottom: 12px;
                }
                line-height: 64px;
                font-size: 26px;
            }
            .bttime{
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                .bttime1{
                    width: 230px;
                    min-height:305px;
                    background-color: #fff;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    text-align: center;
                    line-height: 30px;
                    margin:0 {
                        right: 12px;
                        bottom: 12px;
                    }                    
                    .bttimetop{
                        width: 100%;
                        height: 60%;
                        img{
                            width: 177px;
                            height: 154px;
                            padding-top: 20px;
                        }
                    }
                    .bttimebt{
                        width: 100%;
                        height: 40%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        p{
                            width: 70%;
                            height: 60%;    
                            font-size: 14px;
                            font-weight: 900;
                            overflow: hidden;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                        span{
                            width: 100%;
                            height: 25%;    
                            font-size: 13px;
                            color: #ccc;
                        }
                        i{
                            width: 100%;
                            height: 25%;    
                            font-size: 16px;
                            color: rgb(207, 10, 44);
                        }
                    }
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
                .bttime0{
                    width: 472px;
                    background-color: #fff;
                    display: flex;
                    line-height: 30px;
                    margin-bottom: 12px;
                    margin-right: 12px;
                    div{
                        width: 100%;
                        height:305px;
                        img{
                            width: 100%;
                            height: 100%;
                            }
                    }
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
            }
        }
    }
    // 小轮播图区域
    .rotation1{
        width: 100%;
        margin-top: 24px;
        div{
            width: 100%;
            height:120px;
            img{
                width: 100%;
                height:100%;
            }
        }
    }
    // 手机区域
    .phonewatch{
        width: 100%;
        margin-top: 12px;
        .phonewatchmid{
            width:1212px;
            margin: 0 auto;
            .toptime{
                width: 280px;
                height:64px;
                display: flex;
                line-height: 64px;
                font-size: 26px;
            }
            .bttime{
                width: 100%;
                margin: 12px{
                    left:0;
                }
                display: flex;
                flex-wrap: wrap;
                .bttime1{
                    width: 291px;
                    min-height: 387px;
                    background-color: #fff;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    text-align: center;
                    line-height: 30px;
                    margin-right: 12px;
                    margin-bottom: 12px;
                    .bttimetop{
                        width: 100%;
                        height: 70%;
                        img{
                            width: 177px;
                            height: 170px;
                            margin-top: 50px;
                        }
                    }
                    .bttimebt{
                        width: 100%;
                        height: 30%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        p{
                            width: 70%;
                            height: 60%;    
                            font-size: 14px;
                            font-weight: 900;
                            line-height: 23px;
                            overflow: hidden;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                        span{
                            width: 100%;
                            height: 25%;    
                            font-size: 13px;
                            color: #ccc;
                        }
                        i{
                            width: 100%;
                            height: 25%;    
                            font-size: 16px;
                            margin-bottom: 15px;
                            color: rgb(207, 10, 44);
                        }
                    }
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
            }
        }
    }
    // 穿戴区域
    .watchphone{
        width: 100%;
        margin-top: 12px;
        .watchphonemid{
            width:1212px;
            margin: 0 auto;
            .toptime{
                width: 280px;
                height:64px;
                display: flex;
                line-height: 64px;
                font-size: 26px;
            }
            .bttime{
                width: 100%;
                margin: 12px{
                    left:0;
                }
                display: flex;
                flex-wrap: wrap;
                .bttime1{
                    width: 291px;
                    min-height: 387px;
                    background-color: #fff;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    text-align: center;
                    line-height: 30px;
                    margin-right: 12px;
                    margin-bottom: 12px;
                    .bttimetop{
                        width: 100%;
                        height: 70%;
                        img{
                            width: 177px;
                            height: 170px;
                            margin-top: 50px;
                        }
                    }
                    .bttimebt{
                        width: 100%;
                        height: 30%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        p{
                            width: 70%;
                            height: 60%;    
                            font-size: 14px;
                            font-weight: 900;
                            line-height: 23px;
                            overflow: hidden;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                        span{
                            width: 100%;
                            height: 25%;    
                            font-size: 13px;
                            color: #ccc;
                        }
                        i{
                            width: 100%;
                            height: 25%;    
                            font-size: 16px;
                            margin-bottom: 15px;
                            color: rgb(207, 10, 44);
                        }
                    }
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
            }
        }
    }
    .ecology{
        width: 100%;
        padding-top: 24px;
        margin-bottom: 24px;
        .ecologymid{
            width:1212px;
            margin: 0 auto;
            .toptime{
                width: 280px;
                height:64px;
                display: flex;
                margin: 0{
                    bottom: 12px;
                }
                line-height: 64px;
                font-size: 26px;
            }
            .bttime{
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                .bttime1{
                    width: 230px;
                    min-height:305px;
                    background-color: #fff;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    text-align: center;
                    line-height: 30px;
                    margin:0 {
                        right: 12px;
                        bottom: 12px;
                    }                    
                    .bttimetop{
                        width: 100%;
                        height: 60%;
                        img{
                            width: 177px;
                            height: 154px;
                            padding-top: 20px;
                        }
                    }
                    .bttimebt{
                        width: 100%;
                        height: 40%;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        p{
                            width: 70%;
                            height: 60%;    
                            font-size: 14px;
                            font-weight: 900;
                            overflow: hidden;
                            //文本显示两行，多余省略为省略号
                            text-overflow: ellipsis;
                            display: -webkit-box;
                            -webkit-line-clamp: 2; //多行在这里修改数字即可
                            overflow:hidden;
                            /* autoprefixer: ignore next */
                            -webkit-box-orient: vertical;
                        }
                        span{
                            width: 100%;
                            height: 25%;    
                            font-size: 13px;
                            color: #ccc;
                        }
                        i{
                            width: 100%;
                            height: 25%;    
                            font-size: 16px;
                            color: rgb(207, 10, 44);
                        }
                    }
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
                .bttime0{
                    width: 472px;
                    background-color: #fff;
                    display: flex;
                    line-height: 30px;
                    margin-bottom: 12px;
                    margin-right: 12px;
                    div{
                        width: 100%;
                        height:305px;
                        img{
                            width: 100%;
                            height: 100%;
                            }
                    }
                    &:hover{
                        box-shadow: 2px 2px 30px #ccc;
                    }
    
                }
            }
        }
    }


    
}



